﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ducu.BLL.Entity
{
    public class User : BaseEntity
    {
        public virtual Register RegisterInfo { get; set; }
        public virtual Profile Profile { get; set; }

        public virtual IList<Plan> Supervised { get; set; }

        public virtual IList<Message> Messages { get; set; }

        public virtual void AddMessage(Message message)
        {
            Messages = Messages ?? new List<Message>();
            Messages.Add(message);
        }
    }
}
